﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YiLe.ApplicationFolders;
using YiLe.Views;

namespace YiLe.UI
{
    public class ContactsFolder : ApplicationFolder
    {
        private const string cFolderName = "YiLeSystem Contacts";
        public ContactsFolder()
        {
            this.mSupportedFeatures = FolderFeatures.None;
            this.FolderName = cFolderName;
            this.ImageKey = "ContactsFolder";
            this.AddChildFolder(new CustomersFolder());
            //this.AddChildFolder(new SuppliersFolder());
            //this.AddChildFolder(new EmployeesFolder());
        }

        protected override Type GetTypeOfView(ContentViewType viewType)
        {
            switch (viewType)
            {
                case ContentViewType.DashBoard:
                    return typeof (ContactDashboardView);
                default:
                    return base.GetTypeOfView(viewType);
            }
        }

    }
}
